package com.zx.fm.service.impl;

import com.zx.fm.domain.PaymentApplication;
import com.zx.fm.domain.PaymentApplicationVO;
import com.zx.fm.mapper.PaymentApplicationMapper;
import com.zx.fm.service.IPaymentApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * -- 高贵的马儿驱逐体内的一切外力 --
 *
 * @author kaajee
 * @date 2025/9/3
 * @desc
 */
@Service
public class PaymentApplicationServiceImpl implements IPaymentApplicationService {
    @Autowired
    private PaymentApplicationMapper paymentApplicationMapper;
    @Override
    public List<PaymentApplicationVO> listAll(PaymentApplicationVO paymentApplicationVO) {
        return paymentApplicationMapper.selectAll(paymentApplicationVO);
    }

    @Override
    public int insertPayment(PaymentApplication paymentApplication) {
        return paymentApplicationMapper.insertPayment(paymentApplication);
    }

    @Override
    public int deletePayment(Long id) {
        return paymentApplicationMapper.deleteById(id);
    }

    @Override
    public PaymentApplicationVO getPayment(Long id) {
        return paymentApplicationMapper.selectById(id);
    }

    @Override
    public int updatePayment(PaymentApplication paymentApplication) {
        return paymentApplicationMapper.updatePayment(paymentApplication);
    }
}
